import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listReceivable(query) {
  return request({
    url: '/project/receivable/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getReceivable(id) {
  return request({
    url: '/project/receivable/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addReceivable(data) {
  return request({
    url: '/project/receivable',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateReceivable(data) {
  return request({
    url: '/project/receivable',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delReceivable(id) {
  return request({
    url: '/project/receivable/' + id,
    method: 'delete'
  })
}

export function editMainClass(data) {
  return request({
    url: "/project/receivable/editMainClass",
    method: "post",
    data
  });
}
